package application;

import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.FlowPane;
import javafx.stage.Stage;

public class ShowFlowPane extends Application {

	@Override
	public void start(Stage primarStage) {
		FlowPane pane = new FlowPane();
		pane.setStyle("-fx-border-color: red; -fx-background-color: lightgray ");
		pane.setPadding(new Insets(11, 12, 13, 14));
		pane.setHgap(5);
		pane.setVgap(5);
		
		pane.getChildren().addAll(new Label("First Name:"), new TextField(), new Label("Mi:"));
		TextField tfMi = new TextField();
		tfMi.setPrefColumnCount(1);
		pane.getChildren().addAll(tfMi, new Label("Last Name:"), new TextField());
		
		Scene scene = new Scene(pane, 250, 125);
		primarStage.setTitle("ShowFlowPane");
		primarStage.setScene(scene);
		primarStage.show();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Application.launch();
	}

}
